package geometria2;

public class Punto2D {
    
    private float x;
    private float y;
    
    public Punto2D() {
        super();
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getX() {
        return x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }
    
    public void moverX(float offsetX){
        x +=offsetX;
    }

    public void moverY(float offsetY){
        y +=offsetY;
    }

    public void moverCentro(float x, float y){
        this.x +=x;
        this.y +=y;
    }
    public void moverPunto(float offsetX, float offsetY){
        x +=offsetX;
        y +=offsetY;
    }
    public void distancia(float x, float y){
        this.x -=x;
        this.y -=y;
}
}
